﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Camc.Quality.Migrations
{
    public partial class update_jl : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "_editVersion",
                table: "EditFileTableStructInfo",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "_editVersion",
                table: "EditFileTableInfo",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "_editVersion",
                table: "EditFileTableDataInfo",
                nullable: true);

            migrationBuilder.AddColumn<Guid>(
                name: "StepId",
                table: "EditFileStepInfo",
                nullable: false,
                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));

            migrationBuilder.AddColumn<string>(
                name: "_editVersion",
                table: "EditFileStepInfo",
                nullable: true);

            migrationBuilder.AddColumn<Guid>(
                name: "RowId",
                table: "EditFileRowInfo",
                nullable: false,
                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));

            migrationBuilder.AddColumn<string>(
                name: "_editVersion",
                table: "EditFileRowInfo",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "_editVersion",
                table: "EditFileProcessInfo",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "_editVersion",
                table: "EditFileTableStructInfo");

            migrationBuilder.DropColumn(
                name: "_editVersion",
                table: "EditFileTableInfo");

            migrationBuilder.DropColumn(
                name: "_editVersion",
                table: "EditFileTableDataInfo");

            migrationBuilder.DropColumn(
                name: "StepId",
                table: "EditFileStepInfo");

            migrationBuilder.DropColumn(
                name: "_editVersion",
                table: "EditFileStepInfo");

            migrationBuilder.DropColumn(
                name: "RowId",
                table: "EditFileRowInfo");

            migrationBuilder.DropColumn(
                name: "_editVersion",
                table: "EditFileRowInfo");

            migrationBuilder.DropColumn(
                name: "_editVersion",
                table: "EditFileProcessInfo");
        }
    }
}
